package net.pulseproject.commons.midi.mediator;

import net.pulseproject.commons.midi.MessageAnalyzer;

import com.google.inject.Inject;

public class MidiReceiverBuilderImpl implements MidiReceiverBuilder {
	
	private final MessageAnalyzer analyzer;
	
	@Inject
	public MidiReceiverBuilderImpl(final MessageAnalyzer analyzer) {
		this.analyzer = analyzer;
		
	}
	public final MidiReceiver build(final String transmitterPort, final MidiReceiverListener listener) {
		return new MidiReceiver(this.analyzer, transmitterPort, listener);
	}
	
}
